﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Server
{
    class ResultDataManager
    {
        private static ResultDataManager resultDataManager;
        private Dictionary<string, int> dataList;

        private ResultDataManager()
        {
            dataList = new Dictionary<string, int>();
        }

        public static ResultDataManager Instance()
        {
            if (null != resultDataManager)
                return resultDataManager;
            else
                return new ResultDataManager();
        }

        public void AddRanking(string id, int score)
        {
            dataList.Add(id, score);
        }

        public Dictionary<string,int> GetAllRanking()
        {
            return dataList;
        }

        

    }
}
